import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

//1.注册路由环境
import router from './router/router'
//2.注册请求环境
import * as api from 'api/api'
Vue.prototype.$api = api;
//3.注册进度条样式
import 'nprogress/nprogress.css'
//4.注册总线
Vue.prototype.$bus = new Vue()
//5.注册仓库
import store from 'store/store'
//6.注册mock
import 'mock/mock'
//7.注册全局组件
import '@/util/component.js'
//8.注册vee-validate环境
import "@/util/validate.js"
//9.引入element ui环境
import "@/util/element.js"
new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
